﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="ShopCategories.aspx.cs" 
    MasterPageFile="~/Medianamik/MasterPages/MedianamikModule.master"
    Inherits="Medianamik.UI.Web.Shop.ShopCategories" %>
<%@ Import Namespace="Medianamik.Core.Sugar" %>
<%@ Import Namespace="Telerik.Web.UI"%>

<%@ Register TagName="SimpleGrid" 
    Src="~/medianamik/shop/SimpleGrid.ascx" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContextMenu" runat="server">
   <asp:HyperLink ID="AddArticleButton" runat="server" CssClass="Action BtAjouter" 
    Text="<%$ Resources: Shop, AddCategoryButtonText %>" />
</asp:Content>

<asp:Content ContentPlaceHolderID="CenterContent" runat="server">
    <asp:Literal ID="Breadcrumbs" runat="server" />
    <asp:UpdatePanel ID="FiltersUpdatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div id="BoiteRecherche">
                <fieldset>
                    <p class="ControlTailleVariable">
                        <label><%= "ContentNameColumn".Translate("Medianamik_ContentManagement")%></label>
                        <asp:TextBox id="Name" style="width:400px;" runat="server" CssClass="TxtBox"  />
                    </p>
                    <p>
                        <label><%= "NodeState".Translate("Shop")%></label>
                        <asp:DropDownList CssClass="SelectList" Width="100px" ID="ContentStatesList" runat="server" 
                        DataTextField="Text" DataValueField="Value" />
                    </p>
                    <div style="clear:left;"></div>
                </fieldset>
                <asp:Button ID="FilterButton" runat="server" CssClass="Btn" Text="Rechercher" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <uc:SimpleGrid runat="server" ID="CategoriesGrid" AllowPaging="true" />
    <p class="Titre12pxBordure"><asp:Literal ID="Literal1" runat="server" 
        Text="<%$ Resources: Medianamik_ContentManagement, CaptionLabel %>" /></p>
    <ul id="Legende">
        <li class="ElementBrouillon">
            <div><span></span></div>
            <asp:Literal ID="Literal2" runat="server" 
                Text="<%$ Resources: Medianamik_ContentManagement, DraftContentCaption %>" />
        </li>
    </ul>
    <br class="clearer" />        
</asp:Content>

<asp:Content ID="ExternalContent" ContentPlaceHolderID="ExternalContentHolder" runat="server">
    <telerik:RadScriptBlock runat="server" ID="ScriptBlock">

        <script type="text/javascript">
            //<![CDATA[

            <%= Medianamik.UI.Utility.GetDeleteElementScript(RadAjaxManager.GetCurrent(Page).ClientID,
                Medianamik.Core.Pages.DeleteElementWindow, CurrentEditionCulture.Name, 
                false, CurrentEditionCulture.Name == "") %>

            //]]>
        </script>

    </telerik:RadScriptBlock>
</asp:Content>